package com.sanctity.clients;

import com.sanctity.dto.User;
import com.sanctity.feign.config.FeignDefaultConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/***
 * @belongsProject spring-cloud
 * @description <用户服务远程调用接口>
 * @author Sanct
 * @version 1.0.0
 * @create 2024/2/2 11:25
 **/

@FeignClient(value = "inpatientservice",configuration = FeignDefaultConfig.class)
public interface InPatientClient {

    /**
     * 根据用户id获取用户信息
     * @param id
     * @return
     */
    @GetMapping("/user/{id}")
    User getUserById(@PathVariable("id") Long id);
}
